Package-level declarations

Types

Link copied to clipboard

Class that lists the messages returned by the Repository and the WarehouseService

Link copied to clipboard
data class MongoInfo(var mongoAddress: String = if (System.getenv("DB_CONNECTION_ADDRESS") == null) { "mongodb://localhost:27017" } else { System.getenv( "DB_CONNECTION_ADDRESS", ) }, val databaseName: String = "Warehouse", val collectionName: String = "Ingredient")

Data class that contains the information necessary to connect to the database

Link copied to clipboard
@Serializable
class Quantity(val quantity: Int)

Class that represents the quantity to restock

Link copied to clipboard

This class setup the context loggers

Link copied to clipboard
@Serializable
class UpdateQuantity(val name: String, val quantity: Int)

Class that contains the information necessary to update an ingredient quantity in the warehouse

Link copied to clipboard

Object that maps WarehouseMessage into Http codes